<%--
*
*描述：个性化设置表SYSTEM_SKIN_CONFIGURATION的edit文件
*
* @author zq 
*
--%>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%@taglib prefix="f" uri="/flowpage-tags"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title><s:property value="operate"/>个性化设置</title>
	<%@include file="/share/header.jsp"%>
	<script type="text/javascript" src="<%=path%>/js/EasyCookie.min.js"></script>
	<s:head/>
	<f:header theme="${sessionScope.skinCon.pageSkin}"/>	
	<script type="text/javascript">
		function beforeSubmit(arguments){
			//alert($("input[name=domain.asyncboxSkin][checked]").val());
			EasyCookie.setCookie("system_theme",$("input[name=domain.theme][checked]").val(),365,null,"<%=path%>");
			EasyCookie.setCookie("system_theme_skin",$("input[name=domain.themeSkin][checked]").val(),365,null,"<%=path%>");
			EasyCookie.setCookie("system_grid_skin",$("input[name=domain.gridSkin][checked]").val(),365,null,"<%=path%>");
			EasyCookie.setCookie("system_page_skin",$("input[name=domain.pageSkin][checked]").val(),365,null,"<%=path%>");
			EasyCookie.setCookie("system_asyncbox_skin",$("input[name=domain.asyncboxSkin][checked]").val(),365,null,"<%=path%>");
			
		}
	</script>
  </head>
  <body>
  <s:actionerror/>
	    <s:form  action="save" namespace="/system/skinconfiguration" validate="true" focusElement="userId">
		    <s:radio name="domain.theme" id="theme" label="主题"  required="true" multipleheight="1" multiplewidth="2"  list="getCodeItemList('system_theme')" listKey="value" listValue="name" />
		    <s:radio name="domain.themeSkin" id="themeSkin" label="主题皮肤"  required="true" multipleheight="1" multiplewidth="2"  list="getCodeItemList('system_theme_skin')" listKey="value" listValue="name" />
		    <s:radio name="domain.gridSkin" id="gridSkin" label="列表皮肤"  required="true" multipleheight="1" multiplewidth="2"  list="getCodeItemList('system_grid_skin')" listKey="value" listValue="name" />
		    <s:radio name="domain.pageSkin" id="pageSkin" label="页面皮肤"  required="true" multipleheight="1" multiplewidth="2"  list="getCodeItemList('system_page_skin')" listKey="value" listValue="name" />
		    <s:radio name="domain.asyncboxSkin" id="asyncboxSkin" label="弹出窗口皮肤" multipleheight="1" multiplewidth="2"   required="true" list="getCodeItemList('system_asyncbox_skin')" listKey="value" listValue="name" />
	    </s:form>
  </body>
</html>
